<?php

namespace App\Http\Controllers\Api\V1\Vuls;

use League\Fractal\TransformerAbstract;

class LevelTransformer extends TransformerAbstract
{
    //
    public function transform($lesson)
    {
        /******隐藏数据库字段*****/
        return [
            'level_id' => $lesson['id'],
            'level_name' => $lesson['name'],
        ];
    }
}
